package com.geeksaga.dao;


import java.util.Map;

import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.TableRowCount;

/**
 * @author newbie
 * @since 0.1
 */
public interface TableRowCountDao {
    
	/**
	 * @param tableRowCount
	 * @return
	 * @throws DataAccessException
	 */
	public int plusTotalCount(TableRowCount tableRowCount) throws DataAccessException;
	
	/**
	 * @param tableRowCount
	 * @return
	 * @throws DataAccessException
	 */
	public int plusDeleteCount(TableRowCount tableRowCount) throws DataAccessException;
	
	/**
	 * @param tableRowCount
	 * @return
	 * @throws DataAccessException
	 */
	public int minusTotalCount(TableRowCount tableRowCount) throws DataAccessException;
	
	/**
	 * @param tableRowCount
	 * @return
	 * @throws DataAccessException
	 */
	public TableRowCount addTableRowCountDao(TableRowCount tableRowCount) throws DataAccessException;
	
    /**
     * @param parameter
     * @param table
     * @return
     * @throws DataAccessException
     */
    public TableRowCount count(Map<String, Object> parameter, String table) throws DataAccessException;
}